package com.example.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户的商家收藏夹
 * </p>
 *
 * @author 作者
 * @since 2022-05-29
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("r_user_merchant_collection")
public class UserMerchantCollection {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;
    //被收藏的商家
    private Long merchantId;
    //收藏的时间
    private LocalDateTime merchantCollectionDateTime;

    @Override
    public String toString() {
        return "UserMerchantCollection{" +
                "userId=" + userId +
                ", merchantId=" + merchantId +
                ", merchantCollectionDateTime=" + merchantCollectionDateTime +
                '}';
    }
}
